import QtQuick 2.0
import QtQuick.Dialogs 1.2

Page1Form {
    //1 -
    sender.target : receiver

    //2 -
    //target: sender
     Keys.onPressed: {
            if (event.key === Qt.Key_1){
                var ret = "Your pet ";
                msgInfo.text = ret;
                msgInfo.open();
               // target.width += 10
            }

            else if (event.key === Qt.Key_Minus)
                target.width -= 10
        }



    MessageDialog{
        id:msgInfo //小写开头
        title:"ok buy"
        text: ""
        onAccepted: Qt.quit()   //点击确认之后

    }

}




/*##^##
Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
